
import re

pattern = r'1[34578]\d{9}'
string = '中奖号码为84978981 联系方式： 1363342333'
result = re.sub(pattern,'1xxxxxxx',string)
print(result)



pattern1 = r'[?|&]'
url = 'http: //localhost:8080/myweb/index.aspx?username="mr"&pwd=""'
result1 = re.split(pattern1,url)
print(result1)


